summaryrefslogtreecommitdiffstats
path: root/chrome/common/service_process_util_posix.cc
Commit message (Collapse)AuthorAgeFilesLines
* Coverity: Fix uninitialized member variables.kmadhusu@chromium.org2011-09-271-0/+1
| | | | | | | | | | | CID_COUNT=12 CID=100727, 100582, 100851, 100854, 100904, 101224, 101533, 101534, 101535, 101615, 101631, 101647 BUG=none TEST=none Review URL: http://codereview.chromium.org/7983053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102953 0039d316-1c4b-4281-b951-d872f2087c98
* Make the mac service process handling code clean itself up properly as far ↵dmaclach@chromium.org2011-08-251-16/+16
| | | | | | | | | | | | | | | | | | | | | | | as launchd is concerned. Note new documentation at https://sites.google.com/a/chromium.org/dev/developers/design-documents/service-processes BUG=None TEST= 1) Build. 2) Launch Chromium with cloud print disabled. 3) Start Terminal 4) launchctl list 5) You should not see any org.chromium.Chromium.framework.service_process/* processes listed 6) Go to Preferences in chromium 7) launchctl list 8) You should now see a org.chromium.Chromium.framework.service_process/* process 9) Quit chromium 10) launchctl list 11) There should not be any org.chromium.Chromium.framework.service_process/* processes anymore Review URL: http://codereview.chromium.org/7736002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98221 0039d316-1c4b-4281-b951-d872f2087c98
* Replace many OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, since most of them ↵chromium@hybridsource.org2011-05-281-6/+5
| | | | | | | | apply to non-linux Unix also. Non-linux Unices tested are the BSDs and Solaris. Review URL: http://codereview.chromium.org/3556009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87156 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes up the race condition that exists with deleting a file vs watching it.dmaclach@chromium.org2011-04-011-18/+40
| | | | | | | | | | | | | | The tests created a file and attempted to hook a watcher on it on a separate thread but it was deleting it before the thread had a chance to watch it. BUG=77217, 77064, 69641, 76987 TEST=BUILD Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79307 Review URL: http://codereview.chromium.org/6676118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80205 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 79307 - Fixes up the race condition that exists with deleting a file ↵dmaclach@chromium.org2011-03-241-40/+18
| | | | | | | | | | | | | | | | | vs watching it. The tests created a file and attempted to hook a watcher on it on a separate thread but it was deleting it before the thread had a chance to watch it. BUG=77217,77064, 69641 TEST=BUILD Review URL: http://codereview.chromium.org/6676118 TBR=dmaclach@chromium.org Review URL: http://codereview.chromium.org/6736004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79310 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes up the race condition that exists with deleting a file vs watching it.dmaclach@chromium.org2011-03-241-18/+40
| | | | | | | | | | | | The tests created a file and attempted to hook a watcher on it on a separate thread but it was deleting it before the thread had a chance to watch it. BUG=77217,77064, 69641 TEST=BUILD Review URL: http://codereview.chromium.org/6676118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79307 0039d316-1c4b-4281-b951-d872f2087c98
* fix up small race on g_signal_socketdmaclach@chromium.org2011-03-241-2/+2
| | | | | | | | | BUG=71695 TEST=BUILD Review URL: http://codereview.chromium.org/6722032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79284 0039d316-1c4b-4281-b951-d872f2087c98
* ServiceProcess clean updmaclach@chromium.org2011-03-231-20/+29
| | | | | | | | | | | | | | I'm about to start into fixing a race condition that I introduced, but wanted to get this cleanup in as a separate CL. Simplifies some interfaces. Combines two separate task postings into one. Adds some comments. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6724002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79095 0039d316-1c4b-4281-b951-d872f2087c98
* Getting service process on Mac to handle having things moved/changed ↵dmaclach@chromium.org2011-03-221-2/+9
| | | | | | | | | | | underneath it. BUG=74983 TEST=See http://code.google.com/p/chromium/issues/detail?id=74983#c16 Review URL: http://codereview.chromium.org/6660001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78967 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize member variables.jhawkins@chromium.org2011-03-111-5/+5
| | | | | | | | | | CID=11644,14447,14816,15428 BUG=none TEST=none Review URL: http://codereview.chromium.org/6670016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77763 0039d316-1c4b-4281-b951-d872f2087c98
* New OOL violations on linux since last week, along with the final Mac OOL fixes.erg@google.com2011-03-011-0/+9
| | | | | | | | | | | At the time of writing, everything compiles cleanly now. BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6597049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76396 0039d316-1c4b-4281-b951-d872f2087c98
* Get service process running standalone on the mac by hooking it into launchd.dmaclach@chromium.org2011-02-241-141/+28
| | | | | | | | | BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6482016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75893 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the Xcode 3.1 gcc 4.2 compiler warning:wtc@chromium.org2011-02-041-3/+3
| | | | | | | | | | | | | | service_process_util_posix.cc:143: warning: 'ServiceProcessState::StateData' has a field 'ServiceProcessState::StateData::shut_down_monitor_' whose type uses the anonymous namespace by moving ServiceProcessShutdownMonitor outside the anonymous namespace. R=dmaclach,mark BUG=none TEST=none Review URL: http://codereview.chromium.org/6286103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73828 0039d316-1c4b-4281-b951-d872f2087c98
* Make changes sanjeev suggesteddmaclach@chromium.org2011-02-031-4/+4
| | | | | | | | | BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6286082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73656 0039d316-1c4b-4281-b951-d872f2087c98
* Get service processes working on Mac and Linux.dmaclach@chromium.org2011-02-021-33/+187
| | | | | | | | | | | Service processes will now launch, and attach to ipc channels. BUG=NONE TEST=BUILD Review URL: http://codereview.chromium.org/6349029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73425 0039d316-1c4b-4281-b951-d872f2087c98
* Convert LOG(INFO) to VLOG(1) - chrome/common/.pkasting@chromium.org2010-10-221-1/+1
| | | | | | | | | | | | This also removes LOG_RESOURCE_REQUESTS and all associated code. Also remove some "using"s, fix non-const ref (style violation), remove some "else" after "return", and remove some extra {}s. BUG=none TEST=none Review URL: http://codereview.chromium.org/3941001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63462 0039d316-1c4b-4281-b951-d872f2087c98
* Spilt code in service_process_utils.cc into separate files for Windows and ↵sanjeevr@chromium.org2010-10-131-0/+83
Posix. Added unit-tests for this file. Also created a ServiceProcessState class that manages global state for the service process. BUG=None TEST=Unit-tests, cloud print proxy. Review URL: http://codereview.chromium.org/3745001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62448 0039d316-1c4b-4281-b951-d872f2087c98