Handle 'wmiir setsid' with no arguments gracefully.

This commit is contained in:
Kris Maglione 2009-03-11 17:20:08 -04:00
parent 4c85d31e61
commit ed57a3c76d

View File

@ -342,6 +342,8 @@ xsetsid(int argc, char *argv[]) {
}ARGEND;
if(av0 == nil)
av0 = argv[0];
if(av0 == nil)
return 1;
setsid();
execvp(av0, argv);