http://bugs.winehq.org/show_bug.cgi?id=33607
Bug #: 33607 Summary: Microsoft SQL Server Management Studio Express 2005: cannot restart SQL server (wbemprox returns stale service status) Product: Wine Version: 1.5.15 Platform: x86 URL: http://www.microsoft.com/download/en/details.aspx?id=8 961 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wmi&wbemprox AssignedTo: wine-bugs@winehq.org ReportedBy: djelinski1@gmail.com Classification: Unclassified
It is possible to invoke stop/pause/restart on service. Under Windows, selecting Restart first stops service, then starts it. Under Wine it only stops the service.
The application first stops the service, then gets its status by calling wbem_services_GetObject and checking State. Wine's implementation caches the service data and State returns Running. When the application sees that, it doesn't attempt to start the service.
I already verified that modifying grab_table to always call table->fill works around the problem.