Linux vs. AIX Behavioral Difference

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Linux vs. AIX Behavioral Difference

Postby koschate » Tue Aug 17, 2010 9:02 am

I've run into an interesting little difference between the behaviors of the Linux and AIX binaries that causing me some grief. In Linux, the abt script (actually the /usr/local/VASmalltalk/x.x/bin/es binary) waits until the image is exited before continuing. This is consistent with any other UNIX program I've used.

In AIX, /usr/local/VASmalltalk/x.x/bin/es ends up forking off, and control returns to the caller immediately. Among other things, this means that there's no effective way of using a script to look at the return code from a Smalltalk image when running under AIX. However, my immediate concern is that I have no good way of telling if an image build is finished unless I start setting flags from within Smalltalk.

Is there a command line flag, or some environment variable, that can be set in AIX to get the same blocking behavior as Linux?

Later: Just as a follow-up, I have two AIX boxes. One is blocking, and one isn't. The difference is not in the abt script.
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: Linux vs. AIX Behavioral Difference

Postby wembley » Tue Aug 17, 2010 9:51 am

Thomas -

Is it possible that you are starting VA Smalltalk using
Code: Select all
abt &
on the AIX box that isn't blocking?
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: Linux vs. AIX Behavioral Difference

Postby koschate » Tue Aug 17, 2010 9:55 am

wembley wrote:Is it possible that you are starting VA Smalltalk using
Code: Select all
abt &
on the AIX box that isn't blocking?


No, that would be far too simple. :)
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: Linux vs. AIX Behavioral Difference

Postby koschate » Wed Aug 18, 2010 10:16 am

I still don't know what's causing the difference, but I've got a workaround. I modified my abt script like this:
Code: Select all
if [ "${0##*/}" = "abt" ]
  then
        $VASTROOT_75/bin/es -mcd $IMAGE "$@" | tee
  else
        $VASTROOT_75/bin/es -no_break $IMAGE "$@" | tee
fi

The pipe holds the script until the es process finally terminates. I'd still like to know why I'm seeing this behavior however!
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron