show full path in ps by setting it in argv[0]
authorAndrew Tridgell <tridge@samba.org>
Tue, 17 Mar 1998 00:32:34 +0000 (00:32 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 17 Mar 1998 00:32:34 +0000 (00:32 +0000)
source/web/startstop.c

index 5f7d2e62062b8178729f14e746c7aea574a82536..7ac66f2180095845e49d9ff69371dc1a00ed4089 100644 (file)
@@ -41,7 +41,7 @@ void start_smbd(void)
 
        become_daemon();
 
-       execl(binfile, "smbd", "-D", NULL);
+       execl(binfile, binfile, "-D", NULL);
 
        exit(0);
 }
@@ -62,7 +62,7 @@ void start_nmbd(void)
        
        become_daemon();
 
-       execl(binfile, "nmbd", "-D", NULL);
+       execl(binfile, binfile, "-D", NULL);
 
        exit(0);
 }