[systemd-devel] Invalid poll event on socket
Albert Strasheim
fullung at gmail.com
Mon Apr 25 00:59:27 PDT 2011
Hello
On Wed, Apr 20, 2011 at 1:49 AM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Tue, 12.04.11 16:15, Albert Strasheim (fullung at gmail.com) wrote:
> Heya,
>> I had the following in my syslog today while my service was running:
>> systemd[1]: Got invalid poll event on socket.
>> systemd[1]: foo.service: main process exited, code=exited, status=1
>> What causes invalid poll events on the socket? Which socket?
> Good question.
> I have now changed git to be log a bit more context here. If you manage
> to reproduce this this would be very interesting. Right now we assume
> that the only epoll event we can get on a socket fd is EPOLLIN. And I
> really wonder what event you might have gooten there.
I think I have reproduced this issue. I have a service that uses the
following socket unit with two sockets:
[Unit]
Description=sockets
[Socket]
ListenStream=20000
ListenStream=@foo/bar
Backlog=128
Service=foo.service
[Install]
WantedBy=sockets.target
If I stop and start the service with systemctl, everything works fine.
But if I tell systemctl to restart the service, I see:
systemd[1]: Got invalid poll event on socket.
in syslog and LISTEN_FDS=0 instead of 2, which causes my service to exit.
I'm running systemd-24-1.fc15.x86_64.
Regards
Albert
More information about the systemd-devel
mailing list