Home » Newcomers » Newcomers » Protect agains data loss from accidental disconnects?
Protect agains data loss from accidental disconnects? [message #248437] |
Fri, 08 February 2008 12:19  |
Eclipse User |
|
|
|
A colleague was using Eclipse 3.3.1.1 & CDT 4.0.2 on a remote SUSE
Linux system using a VNC connection. He was using a RealVNC client on
Windows XP, but I don't know what flavor VNC server is on the Linux
box.
At any rate, he accidentally closed his VNC client, which terminated
all of his processes on the remote Linux box, and he seems to have
lost all the changes to files which were open in Eclipse at the time.
I don't know what notification Eclipse gets in this case, maybe
SIGHUP.
Is there an option or config parameter to have open files saved (or
something) in this situation?
--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
|
|
| | | | | | | | | |
Re: Protect agains data loss from accidental disconnects? [message #248767 is a reply to message #248751] |
Tue, 12 February 2008 15:38   |
Eclipse User |
|
|
|
wegener@cboenospam.com (Dave Wegener) wrote in
news:fosef2$2a4$1@build.eclipse.org:
>
> "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> news:Xns9A42590AD18FCVeebleFetzer@206.191.52.34...
>> wegener@cboenospam.com (Dave Wegener) wrote in
>> news:foq8ut$6r0$1@build.eclipse.org:
>>
>> >
>> > "Bert Hyman" <bert.hyman@unisys.com> wrote in message
>> > news:Xns9A4174DFEBBBAVeebleFetzer@206.191.52.34...
>> >> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
>> >> news:fopv91$5mc$5@build.eclipse.org:
>> >>
>> >> > Bert Hyman wrote:
>> >>
>> >> >>
>> >> >> Is there an option or config parameter to have open files
>> >> >> saved (or something) in this situation?
>> >> >>
>> >> >
>> >> > I wonder if setting the "workspace save interval" preference
>> >> > to something small (like 1 minute) would help. The preference
>> >> > is under General > Workspace. I'm not sure if it will trigger
>> >> > save of open files or not - try it out and report back.
>> >>
>> >> Just tried that and then left an changed file open for about 10
>> >> minutes, then shut down my VNC client.
>> >>
>> >
>> > Are you sure you have your VNC server configured properly?
>> > Shutting down a VNC client shouldn't bring down the server.
>>
>> It doesn't bring down the server, it merely terminates the user's
>> session, along with any applications the user might have been
>> running at the time.
>>
> This still doesn't sound correct. The VNC server should not be
> sending SIGHUP to processes when the client disconnects. Are all
> processes terminating (xterms, etc) terminating when the client
> closes its connection?
Yes, all the user processes are gone, and the user is logged out.
I'm just assuming that when (if) Eclipse receives a SIGHUP, it's just
going away without saving any open files. In a normal termination of
Eclipse, it will ask if you want to save any open files; in this case,
it has no way to ask, since the display is closed already.
> How are you starting the VNC Server, client, and Eclipse
> application?
XVnc is started up out of xinetd. The RealVNC client is simply
executed on the user's Windows box, and then once he's logged in, he
executes Eclipse in the normal fashion.
--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
|
|
|
Re: Protect agains data loss from accidental disconnects? [message #248798 is a reply to message #248767] |
Tue, 12 February 2008 17:40  |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
"Bert Hyman" <bert.hyman@unisys.com> wrote in message
news:Xns9A429500AACA9VeebleFetzer@206.191.52.34...
> wegener@cboenospam.com (Dave Wegener) wrote in
> news:fosef2$2a4$1@build.eclipse.org:
>
> >
> > "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> > news:Xns9A42590AD18FCVeebleFetzer@206.191.52.34...
> >> wegener@cboenospam.com (Dave Wegener) wrote in
> >> news:foq8ut$6r0$1@build.eclipse.org:
> >>
> >> >
> >> > "Bert Hyman" <bert.hyman@unisys.com> wrote in message
> >> > news:Xns9A4174DFEBBBAVeebleFetzer@206.191.52.34...
> >> >> eclipse-news@rizzoweb.com (Eric Rizzo) wrote in
> >> >> news:fopv91$5mc$5@build.eclipse.org:
> >> >>
> >> >> > Bert Hyman wrote:
> >> >>
> >> >> >>
> >> >> >> Is there an option or config parameter to have open files
> >> >> >> saved (or something) in this situation?
> >> >> >>
> >> >> >
> >> >> > I wonder if setting the "workspace save interval" preference
> >> >> > to something small (like 1 minute) would help. The preference
> >> >> > is under General > Workspace. I'm not sure if it will trigger
> >> >> > save of open files or not - try it out and report back.
> >> >>
> >> >> Just tried that and then left an changed file open for about 10
> >> >> minutes, then shut down my VNC client.
> >> >>
> >> >
> >> > Are you sure you have your VNC server configured properly?
> >> > Shutting down a VNC client shouldn't bring down the server.
> >>
> >> It doesn't bring down the server, it merely terminates the user's
> >> session, along with any applications the user might have been
> >> running at the time.
> >>
> > This still doesn't sound correct. The VNC server should not be
> > sending SIGHUP to processes when the client disconnects. Are all
> > processes terminating (xterms, etc) terminating when the client
> > closes its connection?
>
> Yes, all the user processes are gone, and the user is logged out.
>
> I'm just assuming that when (if) Eclipse receives a SIGHUP, it's just
> going away without saving any open files. In a normal termination of
> Eclipse, it will ask if you want to save any open files; in this case,
> it has no way to ask, since the display is closed already.
>
> > How are you starting the VNC Server, client, and Eclipse
> > application?
>
> XVnc is started up out of xinetd. The RealVNC client is simply
> executed on the user's Windows box, and then once he's logged in, he
> executes Eclipse in the normal fashion.
>
This configuration sounds like the XVnc server is being brought down when
the client is closed which is closing the applications.
Have you tried telnetting to the server and starting XVnc manually with a
nohup? This will keep the server running even if the client disconnects.
You can even close your telnet session that start XVnc and it will stay
running.
> --
> Bert Hyman | Unisys - Roseville MN
> bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
|
|
|
Goto Forum:
Current Time: Tue Jul 22 17:05:32 EDT 2025
Powered by FUDForum. Page generated in 0.09265 seconds
|