[systemd-devel] [PATCH] Document CONFIG_NET_NS as a required kernel option
Thomas Bächler
thomas at archlinux.org
Thu Apr 10 01:21:07 PDT 2014
Am 10.04.2014 03:35, schrieb Lennart Poettering:
>> Simply try:
>> int func(...) {
>> static bool network_namespace_warning = false;
>> ...
>>
>> if (!network_namespace_warning) {
>> network_namespace_warning = true;
>> log_warn("...");
>> }
>> }
>>
>> Zbyszek
>
> Hmm, so actually this is more complex than this, since the network
> namespace stuff is done after we fork() before we exec() in the child
> process. That means having this as static variable won't help, since you
> could only set the copy, never the variable in the parent.
So, why not issue the warning while parsing the configuration, i.e.
during daemon startup or reload?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140410/068ce375/attachment.sig>
More information about the systemd-devel
mailing list