Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417283 - net-misc/networkmanager-0.9.4.0-r2 hangs on 10-openrc-status
Summary: net-misc/networkmanager-0.9.4.0-r2 hangs on 10-openrc-status
Status: RESOLVED DUPLICATE of bug 410661
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-23 16:57 UTC by Ronald
Modified: 2012-07-05 02:33 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge info (emergeinfoverbose,11.75 KB, text/plain)
2012-05-23 16:57 UTC, Ronald
Details
Strace of nm-online hanging (strace,13.67 KB, text/plain)
2012-05-23 16:59 UTC, Ronald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ronald 2012-05-23 16:57:00 UTC
This part of the file:

case "$2" in
    up) nm-online -t 0 && exec rc-service NetworkManager start ;;
    down) nm-online -t 0 || exec rc-service NetworkManager stop ;;
    pre-sleep) exec rc-service NetworkManager stop ;;
esac

worked correctly in previous versions of NetworkManager (not 100% sure). However, something changed in between.

The command 'nm-online -t 0' now hangs until a connection comes up. This imposes a problem when you shutdown your last connection (as recognized my nm-online). The following happens:

* shutdown last connection *
* NM runs scripts in /etc/NetworkManager/dispatcher.d/ *
* hangs at 10-openrc-status *

This causes other scripts not to run (or very late).

1: I use a hardened system, please see my emerge --info --verbose.
2: I also attached a strace of the 'hanging' nm-online.
Comment 1 Ronald 2012-05-23 16:57:23 UTC
Created attachment 312825 [details]
Emerge info
Comment 2 Ronald 2012-05-23 16:59:26 UTC
Created attachment 312827 [details]
Strace of nm-online hanging

A possible fix is to change:

nm-online -t 0

to

nm-online -t 1

or any other integer > 0.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-07-05 02:33:59 UTC
Should be fixed in networkmanager-0.9.4.0-r4

*** This bug has been marked as a duplicate of bug 410661 ***