> I'm trying to use namespaces with uwsgi, and I use the following command
> line, but it fails:
>
> uwsgi --socket 127.0.0.1:3031 --namespace /home/001:nstest --master
> --module x
> *** Starting uWSGI 0.9.7-dev (32bit) on [Thu Mar  3 14:35:24 2011] ***
> compiled with version: 4.5.2 20110127 (prerelease) on 03 March 2011
> 14:30:41
> waiting for jailed master dead...
> waitpid(): No child processes [uwsgi.c line 820]
> your kernel does not support linux pid namespace
> root@archaeopteryx:~#
>
> Looking at the source, I see that the check for "getpid() != 1" fails,
> and putting a printf of getpid(), I see it returns the same pid that
> clone returns (the same can be seen with strace too).
>
>
> On the other hand, this simplest example of clone with namespaces, works
> just fine, and the pid in the fun function is 1 as it should be.
>
> http://paste.pocoo.org/show/347432/
>
>
> I'm on ArchLinux (latest), gcc-4.5.2 (20110127), glibc-2.13,
> Kernel 2.6.37.2 with all the CGROUP and NS options enabled.
>
> --
>


Fixed.

Thanks

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to