[Konsole-devel] [Bug 288200] [PATCH] "konsole --nofork" crashes when started not from terminal

Askar Safin safinaskar at mail.ru
Mon Dec 5 21:01:04 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=288200





--- Comment #4 from Askar Safin <safinaskar mail ru>  2011-12-05 21:01:04 ---
Jekyll Wu, WHY????????????? isatty(0) is bad way to check status of process.
isatty(1) is also bad way. open("/dev/tty", O_RDONLY) is the only right way. If
process has controlling terminal, it is the daemon. If has not, it is not.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the konsole-devel mailing list