Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1198427 > unrolled thread
| Started by | Pavel Machek <pavel@ucw.cz> |
|---|---|
| First post | 2015-08-02 09:50 +0200 |
| Last post | 2015-08-02 09:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: May close() return any error code? Pavel Machek <pavel@ucw.cz> - 2015-08-02 09:50 +0200
| From | Pavel Machek <pavel@ucw.cz> |
|---|---|
| Date | 2015-08-02 09:50 +0200 |
| Subject | Re: May close() return any error code? |
| Message-ID | <pSWbT-5Oa-5@gated-at.bofh.it> |
On Wed 2015-07-29 12:46:59, Takashi Iwai wrote: > Hi, > > while debugging a problem of X and gdm with the old systemd-210, we > encountered a sudden death of systemd-logind, and this turned out to > be an unexpected errno from close(). The close() call for input > devices returns ENODEV error. The logind in systemd-210 treats this > error code as fatal, triggers assert() and eventually kills itself. > The details are found in an openSUSE bugzilla thread: > https://bugzilla.opensuse.org/show_bug.cgi?id=939571 > > This seems coming from evdev_flush(). As there is no fd leak, it's no > big problem per se. But, now the question is whether returning such > an error code is correct behavior at all. At least, it doesn't seem > defined in POSIX: > http://pubs.opengroup.org/onlinepubs/009695399/functions/close.html Returning an error from close() would imply that file descriptor is not closed.... seems like bad idea. Just fix the kernel not to do it. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web