NiLuJe

Results 522 comments of NiLuJe

That one's harmless, but, eh, while I'm here ;p https://github.com/shermp/Kobo-UNCaGED/blob/466f8ba92b54abd72df9c5565191c23eac62fecb/scripts/ku-lib.sh#L102 `which` -> `command -v`

Huh. A quick check with placeholder scripts behaves properly over here: ``` Sep 10 22:51:10 nickel: (NickelMenu) item 'Kobo UNCaGED' pressed... (src/nickelmenu.cc:323) Sep 10 22:51:10 nickel: (NickelMenu) action 0x327cfcb9 with...

And conversely: ``` Sep 10 22:53:06 nickel: (NickelMenu) item 'Kobo UNCaGED' pressed... (src/nickelmenu.cc:323) Sep 10 22:53:06 nickel: (NickelMenu) action 0x327cfcb9 with argument 1000:quiet: /mnt/onboard/.foo/one.sh : (src/nickelmenu.cc:415) Sep 10 22:53:06 nickel:...

My guess would be `qndb` is hanging when launched from NM, for some reason?

I'd try with a larger timeout and attach strace to it as a first look see ;)

The `poll` is screwy, for... reasons. ``` 4276 23:26:04.343572 [2ab8f5d0] execve("/usr/bin/qndb", ["qndb", "-m", "ndbVersion"], ["USER=root", "UBOOT_MMC=/etc/u-boot/mx50-ntx/u"..., "prevlevel=N", "SHLVL=7", "LD_LIBRARY_PATH=/usr/local/Kobo", "HOME=/", "runlevel=S", "NICKEL_HOME=/mnt/onboard/.kobo", "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "UBOOT_RECOVERY=/etc/u-boot/mx50-"..., "boot_port=2", "TERM=vt102", "waveform_p=0x8f989800", "hwcfg_p=0x8ffffe00", "PATH=/sbin:/bin:/usr/sbin:/usr/b"..., "PLATFORM=mx50-ntx",...

(i.e., that's with a max timeout (10s), the final poll blocks until the kill).

But, yeah, as your toast example did, on kill, the poll does unblock w/ a POLLIN revent and everything's dandy. That's... weird.

If it weren't a poll on a socket, I'd suggest some sort of buffering mishap on standard I/O fds, but that's... strange here.

qndb requires cooperation from Nickel for that method call, right? Except... `waitForFinished` is essentially a fancy wrapper around `wait`, i.e., it blocks. But NM & NDB are in Nickel, so...