Article View: borland.public.cppbuilder.nativeapi
Article #7324Process terminates when user logs off
From: Arnie
Date: Fri, 18 Feb 2005 16:39
Date: Fri, 18 Feb 2005 16:39
21 lines
1868 bytes
1868 bytes
I'll try to make a long story short. We have a service running on a server. It runs under the LOCALSYSTEM acount. It periodically looks in a DB table for work to do. The work entails starting a process along with some input parameters. It uses CreateProcess() to start the new process. This all works fine. The new process can be seen running under the SYSTEM account in Task Manager. Now, a user logs into the server and runs our client software (on the server). They cause an entry to be made in the DB table. Our service finds the entry starts the appropriate process. The user then logs off and the process is killed. We're using SetConsoleControlHandler() to set up handling in the new process. It gets called with a CTRL_LOGOFF_EVENT and we make a log entry. That's how we know what's happening. I had assumed that this would only happen if the user starting the process logged off. Am I wrong? - Arnie
Technical Details
Message-ID:
<42161a5f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.zanker.org!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e2d356145ab61bda,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Arnie" <none> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Process terminates when user logs off Date: Fri, 18 Feb 2005 11:39:53 -0500 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 12.29.236.34 Message-ID: <42161a5f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108744799 12.29.236.34 (18 Feb 2005 08:39:59 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.zanker.org!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail