Antw: sd_journal_send non-blocking call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>> Vaibhav Dahiya <vdahiya@xxxxxxxx> schrieb am 18.07.2019 um 02:53 in Nachricht
<5d2fc2f0.1c69fb81.214d0.1aca@xxxxxxxxxxxxx>:
> Hello,
> 
> I am using sd_journal_send api() api call to log messages on syslog server. 
> I see that this uses
> sendmsg(fd, &mh, MSG_NOSIGNAL) call. 

Aren't syslog messages UDP anyway? When would an UDP send block?

> Is there a provision of passing MSG_DONTWAIT flag to this. 
> or else have a separate api like sd_journal_send_non_blocking(). 
> I want to use this call in an application where I cant make a blocking call 
> for logging. 
> 
> Regards
> 
> Sent from Mail for Windows 10




_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux