mirror of
https://github.com/0intro/wmii
synced 2025-02-09 10:54:57 +03:00
Handle 'wmiir setsid' with no arguments gracefully.
This commit is contained in:
parent
4c85d31e61
commit
ed57a3c76d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user