Re: pthread_create() fails SysV in myDaemon on boot

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

 



On 11/02/2011 02:54 PM, Michael D. Berger wrote:
> Please pardon me if you see this twice.  I thought that the
> newsgroup and the e-mail list were the same thing, but I now
> see they are not.
> 
> In F15_64, on starting SysV myDaemon in level 3, with S99myDaemon
> 
> rtn = pthread_create() fails with:
>    rtn=1=Operation not permitted
> 
> man pthread_create says this means:
>    No permission to set the scheduling policy and parameters specified in
>    attr.
> 
> This happens for:
>    policy = SCHED_FIFO
>    policy = SCHED_RR
> 
> This code works if, after boot, I start it with:
>    /etc/init.d/myDaemon start
> 
> and starts on boot in my old CentOS 5 box.

When you start it via the initscripts (/etc/init.d), are you doing as
the root user or as an unprivileged user?  I'm suspecting a permissions
issue here in that the threads (actually lightweight processes) are
being run as different users.

You might try using "ps uax -L" and looking at the various threads
involved to see who's running what.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting          ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-                Huked on foniks reely wurked for me!                -
----------------------------------------------------------------------
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux