diff options
author | pjd <pjd@FreeBSD.org> | 2011-02-08 23:08:20 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-02-08 23:08:20 +0000 |
commit | 4b7d2ad6a21bd90c918a821465d52c95c6559dc4 (patch) | |
tree | cf98c653076814bb559ebff32981c2ea043116b2 /sbin/reboot | |
parent | a614f3ba259b5d004357b3eeb861c2496e87ea1d (diff) | |
download | FreeBSD-src-4b7d2ad6a21bd90c918a821465d52c95c6559dc4.zip FreeBSD-src-4b7d2ad6a21bd90c918a821465d52c95c6559dc4.tar.gz |
Unlink UNIX domain socket file only if:
1. The descriptor is the one we are listening on (not the one when we connect
as a client and not the one which is created on accept(2)).
2. Descriptor was created by us (PID matches with the PID stored on bind(2)).
Reported by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 1 week
Diffstat (limited to 'sbin/reboot')
0 files changed, 0 insertions, 0 deletions