Add --test-listenfd-support flag
Just exits with 0. Useful to test whether xwayland-satellite supports -listenfd before setting up the X11 sockets and stuff on the compositor side. Versions before this commit panic and exit with nonzero code.
This commit is contained in:
parent
9e48795087
commit
da2ecb5be8
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@ fn parse_args() -> RealData {
|
||||||
|
|
||||||
data.listenfds.push(fd);
|
data.listenfds.push(fd);
|
||||||
i += 2;
|
i += 2;
|
||||||
|
} else if arg == "--test-listenfd-support" {
|
||||||
|
std::process::exit(0);
|
||||||
} else {
|
} else {
|
||||||
panic!("Unrecognized argument: {arg}");
|
panic!("Unrecognized argument: {arg}");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue