Pika · #194

• pika-welcome panics on relaunch when child process holds single-instance socket (fd=3)

PendingBug1 votes0 commentsby ghussey

It prevents pika-welcome from silently failing to reopen after a user launches a setup utility (like the Update Manager) and closes the welcome window, which currently leaves users unable to access the rest of the initial setup tools without rebooting or manually killing background processes.

Bug report

Steps to reproduce

  1. Open pika-welcome.
  2. Click to launch a background utility from inside pika-welcome (such as Pikman Update Manager / pikman-update-m).
  3. Close the pika-welcome window while leaving pikman-update-m running in the background or system tray.
  4. Attempt to open pika-welcome again from the application menu or terminal.

Expected behavior

pika-welcome should open normally (or focus cleanly without crashing) after its main window has been closed.

Actual behavior

pika-welcome fails to open from the desktop launcher and panics in the terminal: thread 'main' panicked at src/main.rs:110:5: assertion failed: instance.is_single()

Inspecting sockets via ss -xlp | grep -i pika shows that the spawned child process inherits the abstract Unix socket without FD_CLOEXEC: u_str UNCONN 0 0 @com.github.pikaos-linux.pikawelcome ... users:(("pikman-update-m",pid=...,fd=3))

Environment

7.3.3-pikaos

Discussion

Sign in with Discord to comment.