diff -ur smbpwman-0.5.orig/smbpwcommon.c smbpwman-0.5/smbpwcommon.c --- smbpwman-0.5.orig/smbpwcommon.c 2004-09-22 12:01:55.000000000 +1000 +++ smbpwman-0.5/smbpwcommon.c 2004-09-22 12:06:08.000000000 +1000 @@ -68,31 +68,6 @@ return result; } -void start_server() -{ - pid_t cpid; - int status; - - cpid = fork(); - if(cpid == 0) - { - // Detach ourself so PAM does not have a fit - cpid = fork(); - - if(cpid != 0) - { - exit(0); - } - setsid(); - - execl(SERVER_PATH SERVER_NAME, SERVER_NAME, 0); - exit(0); - } - waitpid(cpid, &status, 0); - - return; -} - int open_unix_socket(char *name) { struct stat stat_buf; @@ -204,7 +179,6 @@ cs = unix_connect(SOCKET_NAME); if(cs < 0) { - start_server(); while(attempts > 0) { attempts--; @@ -274,8 +248,6 @@ if(cs < 0) { - // could not connect, try to start the server... - start_server(); cs = unix_connect(SOCKET_NAME); }