#371 nedit -sync option

Program (402)


I start Nedit server implicitly with nc (the default
option "-noask"):

% nc <file>

The server command is set by the X resource to
"nedit -server -sync".

The server starts running but the client hangs for some
time and then exits with an error message

"nc: The server did not respond to the request."

The server opens an empty Untitled window even though
the file exist. All the consequent attempts to call nc
are successive, i.e. this file and any others are
opened as expected.

If I omit the option "-sync" from the server command,
no error is displayed and the file is opened from the
first shot.

I have observed this behavior both in the current CVS
version and prebuilt Nedit 5.4 binary for HP-UX
downloaded from the site.

% nedit -V
NEdit pure CVS
2004/06/13 01:08:47 UTC

Built on: HP/UX, PA-RISC, GNU C
Built at: Jun 18 2004, 18:57:50
With Motif: 1.2.4 [@(#)OSF/Motif Version 1.2.5]
Running Motif: 1.2 [@(#)OSF/Motif Version 1.2.6]
Server: Hewlett-Packard Company 600000
Visual: 8-bit PseudoColor (ID 0x20, Default)
Locale: C


  • Eddy De Greef

    Eddy De Greef - 2004-06-23
    • labels: --> Program
    • milestone: --> release
    • assigned_to: nobody --> edg
    • status: open --> open-fixed
  • Eddy De Greef

    Eddy De Greef - 2004-06-23

    Logged In: YES

    There was a race condition in the server code that could
    cause the server to miss some commands sent by nc during the
    initial communication setup. The synchronous mode really
    exposed the bug,
    but it may have happened occasionally in asynchronous mode too.

    It should be fixed in CVS. Can you confirm that?

  • Yury Burkatovsky

    Logged In: YES

    It seems to work now. Thank you.
    I believe this bug report can be closed.

  • Eddy De Greef

    Eddy De Greef - 2004-06-28
    • status: open-fixed --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks