Skip to content

Error when closeAndExit #8

Description

@ELePors

Hi,
When calling

browser closeAndExit.

a debug opens with an error : Does not understand #sigterm message

(i use the latest version with Pharo 11 and Pharo-OS-Windows)

i've a workaround in my environment... shall be generalized with Linux and MacOs version :

GoogleChrome>>>closeAndExit
	"Ask the browser to exit"

	chromeProcess ifNotNil: [ 
		chromeProcess process terminateProcessWithExitCode: 0.
		chromeProcess := nil ]

and:

Win32ChromePlatform>>>openChromeWith: arguments
 	
	| executableLocation cmd |
	executableLocation := '"',self defaultExecutableLocation,'"'.
	cmd := arguments ifEmpty: [ executableLocation ]
						 ifNotEmpty: [ executableLocation,' ',(self stringFromArguments: arguments) ].									
	
	^(self class environment at: #WinProcess) createProcess:  cmd.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions