[Bug 278195] daemon in jail is exiting without informing that it failed to execute

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Apr 2024 14:44:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278195

--- Comment #2 from Zhenlei Huang <zlei@FreeBSD.org> ---
> The parent does return 0. The child will complain with "Undefined symbol".
truss(1) shows that clearly.

```
# truss -f /tmp/daemon -l daemon echo OK
...
 1543: sigaction(SIGHUP,{ SIG_IGN 0x0 ss_t },{ SIG_IGN SA_RESTART ss_t }) = 0
(0x0)
 1544: <new process>
 1543: fork()                                    = 1544 (0x608)
 1544: setsid()                                  = 1544 (0x608)
 1544: sigaction(SIGHUP,{ SIG_IGN SA_RESTART ss_t },0x0) = 0 (0x0)
 1544: madvise(0x0,0,MADV_PROTECT)               = 0 (0x0)
 1544: pipe2(0x7fffffffe950,0)                   = 0 (0x0)
ld-elf.so.1:  1544: write(2,"ld-elf.so.1: ",13)          = 13 (0xd)
/tmp/daemon: Undefined symbol "kqueuex@FBSD_1.7" 1544: write(2,"/tmp/daemon:
Undefined symbol "k"...,48) = 48 (0x30)

 1544: write(2,"\n",1)                           = 1 (0x1)
 1544: exit(0x1)                                
 1544: process exit, rval = 1
 1543: exit(0x0)                                
 1543: process exit, rval = 0
```

-- 
You are receiving this mail because:
You are the assignee for the bug.