[Libwebsockets] LWS_WITHOUT_DAEMONIZE=OFF

Vitaly Shevtsov shev.vt1984 at gmail.com
Wed Jan 23 10:05:24 CET 2019


When this option is used, this compile error occured:
<ommited>/libwebsockets/lib/misc/daemonize.c:85:15: error: comparison of
integer expressions of different signedness: ‘__pid_t’ {aka ‘int’} and
‘unsigned int’ [-Werror=sign-compare]
  if (getpid() == pid_daemon)

I think it should be: if ((unsigned)getpid() == pid_daemon)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20190123/c9b7a723/attachment.html>


More information about the Libwebsockets mailing list