4 * Copyright (C) 1998 Alexandre Julliard
14 #include "server/object.h"
16 int main( int argc
, char *argv
[] )
19 extern void server_main_loop( int fd
);
21 if (argc
!= 2) goto error
;
22 if (!isdigit( *argv
[1] )) goto error
;
24 /* make sure the fd is valid */
25 if (fcntl( fd
, F_GETFL
, 0 ) == -1) goto error
;
29 if (debug_level
) printf( "Server: starting (pid=%d)\n", getpid() );
30 server_main_loop( fd
);
31 if (debug_level
) printf( "Server: exiting (pid=%d)\n", getpid() );
35 fprintf( stderr
, "%s: must be run from Wine.\n", argv
[0] );